]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel-buttons: Remove transitions for corner buttons
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 18 Feb 2011 01:33:41 +0000 (02:33 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 21 Feb 2011 16:38:47 +0000 (17:38 +0100)
So far transitions do not work for the custom drawn corners, so to
avoid a visible glitch when transitioning a button in the panel corner
while updating the style of the apparently attached corner instantly,
remove transition of those panel buttons until we make it work for the
custom drawn parts as well.

https://bugzilla.gnome.org/show_bug.cgi?id=642697

data/theme/gnome-shell.css
js/ui/panel.js

index 843587baff3afc735f2a88a5559ded25637ad827..729c51f2785ee6d66e46d77a36ec2f36d601ed3c 100644 (file)
@@ -269,10 +269,16 @@ StTooltip StLabel {
     icon-shadow: black 0px 2px 2px;
 }
 
+/* The rounded panel corners we draw don't
+ * support transitions, so disable transitions
+ * for the buttons at the left/right edges
+ */
 #panelActivities {
+    transition-duration: 0;
 }
 
 #panelStatus {
+    transition-duration: 0;
 }
 
 #panelStatusMenu {
index c1da9e4f1ff0e0c02f3e04f64e3f126e05bfeea1..f45af435fbcfdbb8bf5603bc9e6f7c1394eccca4 100644 (file)
@@ -871,6 +871,7 @@ Panel.prototype = {
         this._rightBox.add(this._statusBox);
 
         this._statusmenu = new StatusMenu.StatusMenuButton();
+        this._statusmenu.actor.name = 'panelStatus';
         this._menus.addMenu(this._statusmenu.menu);
         this._rightBox.add(this._statusmenu.actor);